<template>
	<view>
	<Iidd  v-for="item in historyy" :key="item.id" :di="item" @tap="dt(item)"></Iidd>
	</view>
</template>

<script>
     import Iidd from '@/components/iidd.vue'
	export default {
        components:{
            Iidd
        },
		data() {
			return {
				iidds:[],
                 gjz:'',
				 id:1,
				 historyy:{},
			}
		},
        onNavigationBarSearchInputChanged(val) {
            console.log(val)
        	// axios.get('/storeinformation/queryallstoreinfod/?name='+val.text).then((res)=>{
        	//     console.log(res.data)
        	//     this.commodity=res.data.data
        	// })
        },
		onLoad(options) {
			console.log(JSON.parse(decodeURIComponent(options.history)));
			this.historyy= JSON.parse(decodeURIComponent(options.history))
		},
        created() {
           
        },
		methods: {
            dt(all){
                console.log(all)
                uni.navigateTo({
                url: '/pages/index/details?suinfo='+ encodeURIComponent(JSON.stringify(all))
                });
            },
            initialize(){
                this.request("/hou/findAll", 'GET').then((res) => {
                    this.iidds=res.data.data
                    console.log(this.iidds)
                })
            }
		}
	}
</script>

<style>
  
   
    	.box-bg {
    		background-color: #F5F5F5;
            
    	}
    
    	.city {
    		/* #ifndef APP-PLUS-NVUE */
    		display: flex;
    		/* #endif */
    		flex-direction: row;
    		align-items: center;
    		justify-content: flex-start;
    	
    	}
    
    	.input-view {
    		/* #ifndef APP-PLUS-NVUE */
    		display: flex;
    		/* #endif */
    		flex-direction: row;
    		flex: 2;
    		background-color: #f8f8f8;
    		height: $nav-height;
    		border-radius: 15px;
    		padding: 0 15px;
    		flex-wrap: nowrap;
    		margin: 7px 0;
    		line-height: 35px;
    	}
    
    	.input-uni-icon {
    		line-height: 35px;
    	}
    
    	.nav-bar-input {
    		height: 35px;
    		line-height:  35px;
    		/* #ifdef APP-PLUS-NVUE */
    		/* #endif */
    		padding: 0 5px;
    		font-size: 12px;
    		background-color: #f8f8f8;
    	}
            
</style>
